package module.scene.event
{
	import flash.events.Event;
	
	/**
	 *	isoObject物件相关事件 
	 * @author Roland
	 * 
	 */
	public class JusticeIsoObjectEvent extends Event
	{
		/**
		 *	自身被从世界中移除
		 */
		public static const REMOVE_FROM_WORLD:String = "removeFromWorld";
		
		/**
		 *	自身被添加到世界中，data为被添加的iso对象
		 */
		public static const ADD_TO_WORLD:String = "isoAddToWorld";	
		
		/**
		 *	自身发布事件时同时抛出此事件，用作场景控制器的事件转发 
		 */
		public static const ISO_DISPATCH_EVENT:String = "isoDispatchEvent";
		
		public var data:Object;
		public function JusticeIsoObjectEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			var $e:JusticeIsoObjectEvent = new JusticeIsoObjectEvent(type,bubbles,cancelable);
			$e.data = data;
			return $e;
		}
	}
}